package com.css.common.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;


@Getter
@AllArgsConstructor
public enum DmGyQyrzlbEnum {

    QYRZLB_QYSH("01", "企业商户"),

    QYRZLB_GTSH("02", "个体商户"),

    QYRZLB_FWS("03", "服务商"),

    QYRZLB_FWSSH("04", "服务商（商户）");

    private final String dm;

    private final String mc;

    public static String getMc(String dm) {
        DmGyQyrzlbEnum res = Arrays.stream(values())
                .filter(x -> x.getDm().equals(dm))
                .findFirst().orElse(null);
        return res == null ? null : res.getMc();
    }
}
